import request from "@/utils/request";

export const getListAPi = (params?: any) => {
  return request({
    url: "/interview/list",
    method: "get",
    params,
  });
};

export const getFormApi = (id: number) => {
  return request({
    url: "/interview/form/" + id,
    method: "get",
  });
};

export const saveApi = (data: any) => {
  return request({
    url: "/interview/save",
    method: "post",
    data,
  });
};

export const delApi = (id: number) => {
  return request({
    url: "/interview/delete/" + id,
    method: "delete",
  });
};

export const logApi = (id: number) => {
  return request({
    url: "/interview/log/" + id,
    method: "get",
  });
};
